Optimal. Leaf size=61 \[ \frac {128 \sin ^9(a+b x)}{9 b}-\frac {384 \sin ^{11}(a+b x)}{11 b}+\frac {384 \sin ^{13}(a+b x)}{13 b}-\frac {128 \sin ^{15}(a+b x)}{15 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4373, 2644,
276} \begin {gather*} -\frac {128 \sin ^{15}(a+b x)}{15 b}+\frac {384 \sin ^{13}(a+b x)}{13 b}-\frac {384 \sin ^{11}(a+b x)}{11 b}+\frac {128 \sin ^9(a+b x)}{9 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2644
Rule 4373
Rubi steps
\begin {align*} \int \sin (a+b x) \sin ^7(2 a+2 b x) \, dx &=128 \int \cos ^7(a+b x) \sin ^8(a+b x) \, dx\\ &=\frac {128 \text {Subst}\left (\int x^8 \left (1-x^2\right )^3 \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac {128 \text {Subst}\left (\int \left (x^8-3 x^{10}+3 x^{12}-x^{14}\right ) \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac {128 \sin ^9(a+b x)}{9 b}-\frac {384 \sin ^{11}(a+b x)}{11 b}+\frac {384 \sin ^{13}(a+b x)}{13 b}-\frac {128 \sin ^{15}(a+b x)}{15 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.49, size = 47, normalized size = 0.77 \begin {gather*} \frac {4 (8330+10755 \cos (2 (a+b x))+3366 \cos (4 (a+b x))+429 \cos (6 (a+b x))) \sin ^9(a+b x)}{6435 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(110\) vs.
\(2(53)=106\).
time = 0.18, size = 111, normalized size = 1.82
method | result | size |
default | \(\frac {35 \sin \left (x b +a \right )}{128 b}-\frac {35 \sin \left (3 x b +3 a \right )}{384 b}-\frac {21 \sin \left (5 x b +5 a \right )}{640 b}+\frac {3 \sin \left (7 x b +7 a \right )}{128 b}+\frac {7 \sin \left (9 x b +9 a \right )}{1152 b}-\frac {7 \sin \left (11 x b +11 a \right )}{1408 b}-\frac {\sin \left (13 x b +13 a \right )}{1664 b}+\frac {\sin \left (15 x b +15 a \right )}{1920 b}\) | \(111\) |
risch | \(\frac {35 \sin \left (x b +a \right )}{128 b}-\frac {35 \sin \left (3 x b +3 a \right )}{384 b}-\frac {21 \sin \left (5 x b +5 a \right )}{640 b}+\frac {3 \sin \left (7 x b +7 a \right )}{128 b}+\frac {7 \sin \left (9 x b +9 a \right )}{1152 b}-\frac {7 \sin \left (11 x b +11 a \right )}{1408 b}-\frac {\sin \left (13 x b +13 a \right )}{1664 b}+\frac {\sin \left (15 x b +15 a \right )}{1920 b}\) | \(111\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 91, normalized size = 1.49 \begin {gather*} \frac {429 \, \sin \left (15 \, b x + 15 \, a\right ) - 495 \, \sin \left (13 \, b x + 13 \, a\right ) - 4095 \, \sin \left (11 \, b x + 11 \, a\right ) + 5005 \, \sin \left (9 \, b x + 9 \, a\right ) + 19305 \, \sin \left (7 \, b x + 7 \, a\right ) - 27027 \, \sin \left (5 \, b x + 5 \, a\right ) - 75075 \, \sin \left (3 \, b x + 3 \, a\right ) + 225225 \, \sin \left (b x + a\right )}{823680 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.91, size = 83, normalized size = 1.36 \begin {gather*} \frac {128 \, {\left (429 \, \cos \left (b x + a\right )^{14} - 1518 \, \cos \left (b x + a\right )^{12} + 1854 \, \cos \left (b x + a\right )^{10} - 800 \, \cos \left (b x + a\right )^{8} + 5 \, \cos \left (b x + a\right )^{6} + 6 \, \cos \left (b x + a\right )^{4} + 8 \, \cos \left (b x + a\right )^{2} + 16\right )} \sin \left (b x + a\right )}{6435 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 269 vs.
\(2 (53) = 106\).
time = 34.30, size = 269, normalized size = 4.41 \begin {gather*} \begin {cases} - \frac {3838 \sin {\left (a + b x \right )} \sin ^{6}{\left (2 a + 2 b x \right )} \cos {\left (2 a + 2 b x \right )}}{6435 b} - \frac {1648 \sin {\left (a + b x \right )} \sin ^{4}{\left (2 a + 2 b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{1287 b} - \frac {768 \sin {\left (a + b x \right )} \sin ^{2}{\left (2 a + 2 b x \right )} \cos ^{5}{\left (2 a + 2 b x \right )}}{715 b} - \frac {2048 \sin {\left (a + b x \right )} \cos ^{7}{\left (2 a + 2 b x \right )}}{6435 b} + \frac {1241 \sin ^{7}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )}}{6435 b} + \frac {376 \sin ^{5}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{715 b} + \frac {640 \sin ^{3}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{4}{\left (2 a + 2 b x \right )}}{1287 b} + \frac {1024 \sin {\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{6}{\left (2 a + 2 b x \right )}}{6435 b} & \text {for}\: b \neq 0 \\x \sin {\left (a \right )} \sin ^{7}{\left (2 a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 46, normalized size = 0.75 \begin {gather*} -\frac {128 \, {\left (429 \, \sin \left (b x + a\right )^{15} - 1485 \, \sin \left (b x + a\right )^{13} + 1755 \, \sin \left (b x + a\right )^{11} - 715 \, \sin \left (b x + a\right )^{9}\right )}}{6435 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 45, normalized size = 0.74 \begin {gather*} \frac {-\frac {128\,{\sin \left (a+b\,x\right )}^{15}}{15}+\frac {384\,{\sin \left (a+b\,x\right )}^{13}}{13}-\frac {384\,{\sin \left (a+b\,x\right )}^{11}}{11}+\frac {128\,{\sin \left (a+b\,x\right )}^9}{9}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________